package com.richpencil.utils;

import com.github.pagehelper.PageInfo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ResultWeb<T> {
	private boolean success = false;
	private List<T> list = new ArrayList<>();
	private Map data = new HashMap<>();
	private String json = "";
	private String message = "";
	private PageInfo<T> pageinfo = new PageInfo<>();
	public T getInstance() {
		return instance;
	}
	public void setInstance(T instance) {
		this.instance = instance;
	}
	private T instance=null;
	
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	public Map getData() {
		return data;
	}
	public void setData(Map data) {
		this.data = data;
	}
	public String getJson() {
		return json;
	}
	public void setJson(String json) {
		this.json = json;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public PageInfo<T> getPageinfo() {
		return pageinfo;
	}
	public void setPageinfo(PageInfo<T> pageinfo) {
		this.pageinfo = pageinfo;
	}
}
